<?php
/* @var $this ContentController */
/* @var $model Content */

$this->widget('bootstrap.widgets.TbBreadcrumbs',array(
	'links'=>array(
		'Pages'=>array('page/admin'),
		$model->page->name=>array('page/update/'.$model->page->id),
		'Content'=>array('admin', 'page'=>$model->pageId),
		'Create'
	),
));

$this->menu=array(
	array('label'=>'Operations'),
	array('label'=>'Create Content', 'icon'=>'star', 'url'=>'#', 'active'=>true),
	array('label'=>'View Content', 'icon'=>'eye-open', 'url'=>'#', 'disabled'=>true),
	array('label'=>'Update Content', 'icon'=>'pencil', 'url'=>'#', 'disabled'=>true),
	array('label'=>'Delete Content', 'icon'=>'trash', 'url'=>'#', 'disabled'=>true),
	array('label'=>'Manage Contents', 'icon'=>'cog', 'url'=>array('admin', 'page'=>$model->pageId)),
	array('label'=>'List Contents', 'icon'=>'th-list', 'url'=>array('index', 'page'=>$model->pageId)),
);
?>
<div class="row">
	<div class="span9">
		<div style="padding: 10px;">
<h2>Create Content</h2>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
		</div>
	</div>
	<div class="span3">
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Administration',
		));
		$this->widget('bootstrap.widgets.TbMenu',array(
			'type'=>'list',
			'items'=>$this->menu,
		));
		$this->endWidget();
	?>
	</div>
</div>